The parameter reject is not used and could be removed.
This check looks for parameters in functions that are not used in the function
body and are not followed by other parameters which are used inside the function.
Use of process.exit() is discouraged as it will potentially stop the complete node.js application. Consider quitting gracefully instead by throwing an Error.
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.